import request from '@u/request';

const ORDER_API_HOST = '/api/admin/order'

const orderApi = {
    //订单列表
    orderList : params => {
        return request({
            url : ORDER_API_HOST,
            params,
            method : 'get'
        })
    },
    //订单详情
    orderDetail : params => {
        return request({
            url : `${ORDER_API_HOST}/info`,
            params,
            method : 'get'
        })
    }
}

export default orderApi;